package com.dianping.cat.home.dal.report;

import java.util.Date;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class BaselineDao extends AbstractDao {
/* 10 */   public Baseline createLocal() { return new Baseline(); }





/* 16 */   public int deleteByPK(Baseline proto) throws DalException { return getQueryEngine().deleteSingle(BaselineEntity.DELETE_BY_PK, proto); }




  public Baseline findByPK(int keyId, Readset<Baseline> readset) throws DalException {
/* 22 */     Baseline proto = new Baseline();

/* 24 */     proto.setKeyId(keyId);

/* 26 */     return (Baseline)getQueryEngine().querySingle(BaselineEntity.FIND_BY_PK, proto, readset);
  }






  public Baseline findByReportNameKeyTime(Date reportPeriod, String reportName, String indexKey, Readset<Baseline> readset) throws DalException {
/* 35 */     Baseline proto = new Baseline();

/* 37 */     proto.setReportPeriod(reportPeriod);
/* 38 */     proto.setReportName(reportName);
/* 39 */     proto.setIndexKey(indexKey);

/* 41 */     return (Baseline)getQueryEngine().querySingle(BaselineEntity.FIND_BY_REPORT_NAME_KEY_TIME, proto, readset);
  }








/* 51 */   protected Class<?>[] getEntityClasses() { return new Class[] { BaselineEntity.class }; }



/* 55 */   public int insert(Baseline proto) throws DalException { return getQueryEngine().insertSingle(BaselineEntity.INSERT, proto); }





/* 61 */   public int updateByPK(Baseline proto, Updateset<Baseline> updateset) throws DalException { return getQueryEngine().updateSingle(BaselineEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dal/report/BaselineDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */